cssboxes: Try to avoid doing work for rectangular boxes
authorTimm Bäder <mail@baedert.org>
Sat, 25 Jan 2020 18:40:54 +0000 (19:40 +0100)
committerTimm Bäder <mail@baedert.org>
Sun, 26 Jan 2020 17:21:07 +0000 (18:21 +0100)
commitc7ea83cd8202f1b99b90b2cd801023701aabad7c
tree4c4542f6dda7636f199c6958c5ee0c69d3fedb30
parent352c9ba42a3bd60c3500ae903b59813edf034ef5
cssboxes: Try to avoid doing work for rectangular boxes

Use the new gtk_css_dimension_value_is_zero() to check if we really need
to e.g. apply a border radius at all.
We compute css boxes a lot so this makes sense here, it especially shows
up during pick(), where we need the border box.
gtk/gtkcssboxesimplprivate.h